package com.whp.yky.yky.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.whp.yky.yky.entity.DocumentEntity;
import com.whp.yky.yky.mapper.DocumentEntityMapper;
import com.whp.yky.yky.service.DocumentEntityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author whp
 * @since 2021-03-15
 */
@Service
public class DocumentEntityServiceImpl extends ServiceImpl<DocumentEntityMapper, DocumentEntity> implements DocumentEntityService {

    @Autowired
    private DocumentEntityMapper documentEntityMapper;

    @Override
    public IPage<DocumentEntity> getDocumentEntityInfo(IPage<DocumentEntity> page, DocumentEntity documentEntity) {
        return page.setRecords(documentEntityMapper.getDocumentEntityInfo(page,documentEntity));
    }
}
